import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Shopping from '../components/Shopping'
import Home from '../components/Home'
import About from '../components/About'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      // redirect:HelloWorld
      redirect:'/HelloWorld'
    },
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/About',
      name: 'About',
      component: About
    },
    {
      path: '/Shopping',
      name: 'Shopping',
      component: Shopping
    },

  ],
  mode:'hash'
})
